#ifndef ALLOWANCE_TYPE_DETAIL_H
#define ALLOWANCE_TYPE_DETAIL_H

#include "allowance_type_detail_struct_csv.hpp"

class allowance_type_detail
{
  public:
	inline virtual ~allowance_type_detail() { }

  private:
};



// implementation for csv files

class allowance_type_detail_csv: public allowance_type_detail
{
  public:
	allowance_type_detail_csv(char* filename): file(filename)
	{ }
	
	allowance_type_detail_csv(std::string filename): file(filename)
	{ }
	

	static float find_limit(int _parent_id, int _child_id);	

  protected:
	static allowance_type_detail_struct_csv const find(int _id, int _child_id);
	

  private:
	std::string file;
};

#endif